package leetcode.editor.cn.test;

import lombok.Data;

/**
 * Created by fantastyJ on 2020/6/10 11:19 上午
 */
@Data
public class Student extends Person{

    private int classNum;

    public Student(String name,int sex,int age,int classNum) {
        super(name,sex,age);
        this.classNum = classNum;
    }

    @Override
    void eat() {
        System.out.println("eat like a student");
    }
}
